package oberserve

import (
	"fmt"
	"oberserver/src/itf"
	"net"
)

//观察者的属性
type ConcreteObserver struct {
	Id int
	address net.Addr
}


//将更新后的状态发布出去
func (co *ConcreteObserver) Update(e *itf.Event) {
	fmt.Printf("observer [%d] recieved msg: %s.\n", co.Id, e.Data)


}